package com.fm.demo.joke

import android.os.Bundle
import android.view.MenuItem
import com.fm.common.base.BaseBActivity
import com.fm.demo.R
import com.fm.demo.databinding.ActivityJokeMainBinding
import com.google.android.material.bottomnavigation.BottomNavigationView

/**
 * @CreateData:     2019/11/12 14:37
 * @E-Mail:         709674174@qq.com
 * @Author:         lyy
 * @Description:    笑话，主界面
 */
class JokeMainActivity : BaseBActivity<ActivityJokeMainBinding>(), BottomNavigationView.OnNavigationItemSelectedListener {

    override fun initView(savedInstanceState: Bundle?) {
        initToolbar(binding.rootToolbar, R.string.yiyuan_joke, true)
    }

    /**
     * 导航栏点击监听
     */
    override fun onNavigationItemSelected(item: MenuItem): Boolean {
        when (item.itemId) {
            0 -> {
            }
            1 -> {
            }
            2 -> {
            }
        }
        return false
    }
}
